<?php

namespace app\index\validate;

use think\Validate;

class Makeup extends Validate
{

	protected $rule = [
        'true_name'  =>'require|chs',
        'phone'  =>'require',
        'id_card' =>'require|idCard',
        'd_id' =>'require|>:0',
        'code' =>'require|between:1000,9999',
        '__token__' => 'require|token'
    ];
    protected $message = [
        'true_name.require' => '姓名必须填写',
        'true_name.chs' => '姓名只能是汉字',
        'phone.require' => '电话不能为空',
        //'phone.phone' => '电话格式错误',
        'id_card.require' => '身份证不能为空',
        'id_card.idCard' => '身份证错误',
        'd_id.require' => '补考类型错误',
        'd_id.>' => '补考类型错误',
        'code.require' => '验证码不能为空',
        'code.between' => '验证码错误',
        '__token__.require'    => 'token必须填写',
        '__token__.token'    => '你已经提交过了',
    ];
}
